<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        {include file="Script.tpl.htm" title="JPR"}
        <script type="text/javascript" charset="utf-8" src="/RecJP/bootstrap/js/jquery.raty.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/RecJP/bootstrap/js/jquery.simplemodal/jquery.simplemodal.js"></script>
        <script type="text/javascript" charset="utf-8" src="/RecJP/bootstrap/js/quickTest.js"></script>
        <link rel="stylesheet" type="text/css" href="/RecJP/bootstrap/js/jquery.simplemodal/css/basic.css"/>
        <script type="text/javascript" charset="utf-8" src="/RecJP/bootstrap/js/MyMiniAccordion/MyMiniAccordion.js"></script>
        <link rel="stylesheet" type="text/css" href="/RecJP/bootstrap/js/MyMiniAccordion/MyMiniAccordion.css"/>

        <script type="text/javascript">
            $(function () {
                //$(".accordian").collapseAll();
                $("#quiz").click(function(){
                    $.get("/RecJP/SelectUnit.php?{if (isset($smarty.get.l))}&lessonid={$smarty.get.l}"
                        +"{/if}{if (isset($smarty.get.bid))}&bid={$smarty.get.bid}{/if}")
                    .done(function(result){
                        $(result).modal({
                            autoResize:true, maxWidth:"420",maxHeight:"350"});
                        //$("#divselectunit").css("width","520px");
                        init_accordian();
                    });                
                });
            });
        </script>
    </head>
    <body class="bgcolor_gray">
        {include file="Navigation.tpl.htm"}
        <div class="container margintop2"  style="min-height: 600px;">
            <div class="div140 leftfloat">
                <div class="margintop4 lineheight20 fontweight20 fontsize0">教材版本</div>
                <div class="accordian div140">
                    <div class="root fontsize0">新版标日(初上)</div>
                    {foreach item=arrayitem from=$xinbian1}
                    <div class="node fontsize0 {if isset($bookid)==false||$bookid!=1}hide{/if}">
                        <a href="main.php?l={$arrayitem}&bid=1">第{$arrayitem}课</a></div>
                    {/foreach}

                    <div class="root fontsize0">新版标日(初下)</div>
                    {foreach item=arrayitem from=$xinbian2}
                    <div class="node fontsize0 {if isset($bookid)==false||$bookid!=2}hide{/if}">
                        <a href="main.php?l={$arrayitem}&bid=2">第{$arrayitem}课</a></div>
                    {/foreach}
                    <div class="root fontsize0">大家的日语1</div>
                    {foreach item=arrayitem from=$dajia}
                    <div class="node fontsize0 {if isset($bookid)==false||$bookid!=3}hide{/if}">
                        <a href="main.php?l={$arrayitem}&bid=3">第{$arrayitem}课</a></div>
                    {/foreach}
                </div>
            </div>
            <div class="div780 leftfloat offset20 ">
                <div class="div780 fontsize0 margintop4">
                    <a href="Main.php">首页</a>{if empty($BookName)==false}->{$BookName}{/if}{if (isset($smarty.get.l))}->第{$smarty.get.l}课{else}->随机{/if}
                    <input id="quiz" type="button" class="btn btn-primary btn-medium" value="做测验" />
                </div>

                <table id="tb_main" class="textalign_left fontsize0" cellpadding="2px;">
                    <tr id="trheader" class="fontweight10 cursor_pointer showbottomline">
                        <th class="width50">序号</th>
                        <th class="width180">假名<span name="show" class='fontweight0 littleoffset2 hide' tag="1,1">[显示]</span><span name="hide" class='fontweight0 littleoffset2' tag="1,0">[隐藏]</span></th>
                        <th class="width140">汉字<span name="show" class='fontweight0 littleoffset2 hide' tag="2,1">[显示]</span><span name="hide" class='fontweight0 littleoffset2' tag="2,0">[隐藏]</span></th>
                        <th class="width200">解释<span name="show" class='fontweight0 littleoffset2 hide' tag="3,1">[显示]</span><span name="hide" class='fontweight0 littleoffset2' tag="3,0">[隐藏]</span></th>
                        <th class="width70">正确率</th>
                        <th class="width100">记忆度</th>
                    </tr>
                    {foreach item=arrayitem name=name from=$Words}
                    <tr name="tr_row" class='lineheight20 showbottomline {cycle values="bgcolor_blue,"}'>
                        <td><span name="spanid" class="hide">{$arrayitem.wordid}</span><span name="spanmemory" class="hide">{$arrayitem.memory}</span> {$smarty.foreach.name.iteration}.</td>
                        <td> <span name="spanword">{$arrayitem.word}{*假名*}</span><input name="inputword" type="button" value="显示" class="hide btn btn-primary btn-mini" /></td>
                        <td> <span name="spanread">{$arrayitem.read}{*汉字*}</span><input name="inputread" type="button" value="显示" class="hide btn btn-primary btn-mini" /></td>
                        <td> <span name="spanmeaning">{$arrayitem.species}{$arrayitem.meaning}{*解释*}</span><input name="inputmeaning" type="button" value="显示" class="hide btn btn-primary btn-mini" /></td>
                        <td> {if ($arrayitem.testCount>0 && $arrayitem.errorRate =="")} 100%  {elseif $arrayitem.testCount==""}0% {else}{number_format(1-$arrayitem.errorRate,2)*100}%{/if}</td>
                        <td name="tdmem"></td>
                    </tr>
                    {/foreach}
                </table>


                
                <div class="textalign_right margintop10">
                    <input value="保存记录" type="button" id="btnSave" class="btn btn-primary btn-mini" /><span id="spangoTop" class="cursor_pointer fontsize0">回顶部</span></div>
            </div>
        </div>
        {include file="Footer.tpl.htm"}
    </body>
</html>
